#ifndef MCCIRCLEPARAMETRICWINDOW_H
#define MCCIRCLEPARAMETRICWINDOW_H

#include <QWidget>
#include <MCCircleVisual.h>
#include <MCCommand.h>

namespace Ui {
class MCCircleParametricWindow;
}

class MCCircleParametricWindow : public QWidget
{
    Q_OBJECT

public:
    explicit MCCircleParametricWindow(MCCommand *command, MCCircleVisual *circleVisual, QWidget *parent = nullptr);
    ~MCCircleParametricWindow();

private slots:
    void on_x1_le_textChanged(const QString &arg1);

    void on_y1_le_textChanged(const QString &arg1);

    void on_radius_le_textChanged(const QString &arg1);

    void on_apply_btn_clicked();

    void on_terminate_btn_clicked();

private:

    bool isTextValid(QString text);
    void updateValue();

private:
    Ui::MCCircleParametricWindow *ui;

    MCCommand *_currentCommand;
    MCCircleVisual *_circleVisual;
    MCCircle2D _circle;

};

#endif // MCCIRCLEPARAMETRICWINDOW_H
